package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.sggg.entity.SgSendMedicine;
import org.jeecg.modules.sggg.mapper.SgSendMedicineMapper;
import org.jeecg.modules.sggg.service.ISgSendMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 送药表
 * @Author: jeecg-boot
 * @Date: 2023-03-16
 * @Version: V1.0
 */
@Service
public class SgSendMedicineServiceImpl extends ServiceImpl<SgSendMedicineMapper, SgSendMedicine> implements ISgSendMedicineService {

    @Autowired
    private SgSendMedicineMapper sgSendMedicineMapper;

    @Override
    public IPage<SgSendMedicine> queryPageList(IPage<SgSendMedicine> page, Integer isSend, String name, String sex, String phone, String idCard, String threeTag, String userId, String roleCode, String orgCode,List<String> responsibleAgencies) {
        return sgSendMedicineMapper.queryPageList(page, isSend, name, sex, phone, idCard, threeTag, userId, roleCode, orgCode,responsibleAgencies);
    }

    @Override
    public IPage<SgSendMedicine> queryList(IPage<SgSendMedicine> page, Integer isSend, String name, String sex, String phone, String idCard, String threeTag, String userId, String roleCode, String orgCode,List<String> responsibleAgencies) {
        return sgSendMedicineMapper.queryList(page, isSend, name, sex, phone, idCard, threeTag, userId, roleCode, orgCode,responsibleAgencies);
    }

    @Override
    public List<SgSendMedicine> getRecordList(String orgCode, String roleCode, String doctorId,List<String> responsibleAgencies) {
        return sgSendMedicineMapper.getRecordList(orgCode, roleCode, doctorId,responsibleAgencies);
    }

    @Override
    public String queryBydoctorId(String doctorId) {
        return sgSendMedicineMapper.queryBydoctorId(doctorId);
    }
}
